//
//  AddDescribeTableViewCell.m
//  Mahjong
//
//  Created by mc on 16/9/9.
//  Copyright © 2016年 Elliot. All rights reserved.
//

#import "AddDescribeTableViewCell.h"

@implementation AddDescribeTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.lableText = [[UILabel alloc] init];
//        _lableText.backgroundColor = [UIColor redColor];
        _lableText.textColor = [UIColor colorWithWhite:0.500 alpha:1.000];
        _lableText.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:_lableText];
        
        self.lineView = [[UIView alloc] init];
        _lineView.backgroundColor = [UIColor colorWithWhite:0.500 alpha:0.500];
        [self.contentView addSubview:_lineView];
    }
    return self;
}
-(void)layoutSubviews{
    [super layoutSubviews];
    self.lableText.frame = CGRectMake(0, 0, self.contentView.bounds.size.width, self.contentView.frame.size.height);
    self.lineView.frame = CGRectMake(20, self.contentView.frame.size.height - 1, self.contentView.bounds.size.width - 40, 1);
    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
